// 切换到找座位选项卡
function changeFindBody () {
    // 找座位
    var findSeatTab = document.getElementById('findSeatTab')
    findSeatTab.removeAttribute('class')
    findSeatTab.setAttribute('class', 'navHeaderItem activeHeader')
    var findBody = document.getElementById('findBody')
    findBody.style.display = 'block'
    // 帮占座
    var grabSeatTab = document.getElementById('grabSeatTab')
    grabSeatTab.removeAttribute('class')
    grabSeatTab.setAttribute('class', 'navHeaderItem')
    var grabBody = document.getElementById('grabBody')
    grabBody.style.display = 'none'
}

// 切换到帮占座选项卡
function changeGrabBody () {
    // 找座位
    var findSeatTab = document.getElementById('findSeatTab')
    findSeatTab.removeAttribute('class')
    findSeatTab.setAttribute('class', 'navHeaderItem')
    var findBody = document.getElementById('findBody')
    findBody.style.display = 'none'
    // 帮占座
    var grabSeatTab = document.getElementById('grabSeatTab')
    grabSeatTab.removeAttribute('class')
    grabSeatTab.setAttribute('class', 'navHeaderItem activeHeader')
    var grabBody = document.getElementById('grabBody')
    grabBody.style.display = 'block'
}

// 确认配对
function confirmPair () {
    console.log('confirmPair')
}

// 提交自己的座位信息
function postMySeat () {
    console.log('postMySeat')
}

// 展示发布浮窗
function showDeployBody () {
    var deployBody = document.getElementById('deployBody')
    deployBody.style.display = 'block';
}

// 展示电话详情页
function showDetailBody (phoneNum) {
    var detailBody = document.getElementById('detailBody')
    detailBody.style.display = 'block';
    // 填写手机号
    var phone = document.getElementById('phone')
    phone.innerHTML = phoneNum
}

// 关闭电话详情浮窗
function closeDetailBody () {
    var detailBody = document.getElementById('detailBody')
    detailBody.style.display = 'none';
}

// 关闭发布信息浮窗
function closeDeploy () {
    var deployBody = document.getElementById('deployBody')
    deployBody.style.display = 'none';
}